public class DisciplinesSub1 extends Disciplines{
    private String name;

    public DisciplinesSub1(DisciplinesTypeEnum type,String details,String name,double fees){
        super(type,details,fees);
        this.name=name;

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void study(){
        System.out.println(getName()+"正在学1");
    }
    @Override
    public String toString() {
        return super.toString()+"DisciplinesSub2{" +
                "name='" + name + '\'' +
                '}';
    }
}
